<!DOCTYPE html>
<html>
<#include "../head.html">
    <body>
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix">



                            <div class="toolbor-module search">
                                <div class="formTit">用户名：</div>
                                <input type="text" name="userName" id="userName" class="search-value">
                                <div class="formTit">邮箱：</div>
                                <input type="text" name="email" id="email" class="search-value">
                                <div class="formTit">手机：</div>
                                <input type="text" name="phone" id="phone" class="search-value">

                                <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                            </div>
                        </div>
                        <!--工具栏--}-->

                        <div id="main" class="clearfix">
                            <form id="cust" name="form1" method="post" action="/admin/crm/addFromYyToCf.html?userId=<#if searchUser??>${searchUser.userId!''}</#if>">
                                <div class="valBox w750 h300">
                                    <div class="top">
                                        <strong>新增客户</strong>
                                    </div>
                                    <div class="val clearfix">
                                        <ul>

                                            <li>
                                                <div class="title">用户名：</div>
                                                <div class="v">
                                                    <#if searchUser??>${searchUser.userName!''}</#if>
                                                </div>
                                            </li>

                                            <li>
                                                <div class="title">邮箱：</div>
                                                <div class="v">
                                                    <#if searchUser??>${searchUser.email!''}&nbsp;&nbsp;<#if searchUser.emailStatus==1><font color="green">已认证</font><#else>未认证</#if></#if>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">手机：</div>
                                                <div class="v">
                                                    <#if searchUser??>${searchUser.phone!''}&nbsp;&nbsp;<#if searchUser.phoneStatus==1><font color="green">已认证</font><#else>未认证</#if></#if>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">是否实名认证：</div>
                                                <div class="v">
                                                    <#if searchUser??><#if searchUser.realStatus==1><font color="green">已认证</font><#else>未认证</#if></#if>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">是否被邀请：</div>
                                                <div class="v">
                                                    <#if isInvited?? && isInvited==1><font color="green">有邀请人</font><#else>没有邀请</#if>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">CRM：</div>
                                                <div class="v">
                                                    <#if isAllow?? && isAllow==1><font color="green">已录入</font> <#else>未录入</#if>
                                                </div>
                                            </li>


                                        </ul>
                                        <div class="other">
                                            <input type="hidden"  name="actionType" value="add" />
                                            <#if isAllow?? && isAllow==1><#else> <input type="submit"  name="reset" value="转向给理财" class="input-button confirm"/></#if>

                                        </div>
                                    </div>
                                </div>

                            </form>

                        </div>
        </div>
    </div>
    <div class="mc-b">
        <#include "../foot.html">
    </div>
    <#include "../jsPage.html">
        <script>
            var url = 'addFromYyToCf.html?search=true';
            function sousuo(){
                var sou = "";
                var userName = $("#userName").val();
                var email = $("#email").val();

                var phone = $("#phone").val();



                if(userName!=null && userName !="" && userName!="undefined"){
                    sou+="&userName="+userName;
                }
                if(email!=null && email !="" && email!="undefined"){
                    sou+="&email="+email;
                }

                if(phone!=null && phone !="" && phone!="undefined"){
                    sou+="&phone="+phone;
                }


                location.href=url+sou;

            }

            $("#searchName")[0].defaultValue=getQueryString("searchName","请输入(姓名 /身份证/手机)关键字");
            $("#fmName")[0].defaultValue=getQueryString("fmName","请输入理财经理关键字");
            function getQueryString(name,tip){
                var reg=new  RegExp("(^|&)"+name+"=([^&]*)(&|$)");
                var r =window.location.search.substr(1).match(reg);
                if(r!=null)
                    return  decodeURI(r[2]);
                return  tip;
            }



            function exportxls(){
                var num='${(page.total)?c}';
                num=num.replace(",","");
                if(num>30000){ //条数自己定义，但必须小于65536
                    alert("数据过多，请选择指定的时间进行数据查询导出！"); //提示信息根据不同的内容注意修改下。
                    return false;
                }
                location.href='addFromYyToCf.html?export=export';
            }
        </script>
    </body>
</html>
